package com.woniuxy.lab.woniu_lab_boss.controller.form;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.Pattern;
import java.math.BigDecimal;

/**
 * @author 17292
 */
@Data
@ApiModel("修改靶场信息表单")
public class ModifyRangeForm {


    /**
     * 靶场ID
     */
    @ApiModelProperty(value = "靶场ID",example = "1")
    private Integer rangeId;

    /**
     * 靶场名称
     */
    @ApiModelProperty(value = "靶场名称",example = "蜗牛冠军奖大赛")
    private String name;

    /**
     * 难度(low/middle/high)
     */
    @ApiModelProperty(value = "难度",example = "middle")
    @Pattern(regexp = "^(low|middle|high)$", message = "难度格式不正确")
    private String level;

    /**
     * 定价(蜗牛币)
     */
    @ApiModelProperty(value = "定价",example = "2")
    @Min(value = 0, message = "定价必须大于0")
    private BigDecimal price;

    /**
     * 答案
     */
    @ApiModelProperty(value = "答案",example = "***")
    private String flag;

    /**
     * 积分
     */
    @ApiModelProperty(value = "积分",example = "5")
    private Integer score;

    /**
     * 靶场对应实验名称
     */
    @ApiModelProperty(value = "靶场对应实验名称",example = "蜗牛币大赛")
    private String experName;

    /**
     * 实验简介(不能超过500字)
     */
    @ApiModelProperty(value = "实验简介",example = "有胆你就来")
    private String introduce;

    /**
     * 实验手册
     */
    @ApiModelProperty(value = "实验手册",example = "***")
    private String manual;

    /**
     * 实验封面地址
     */
    @ApiModelProperty(value = "实验封面地址",example = "***")
    private String pic;
}